package com.zheng.umbrella.dao.model;

import java.io.Serializable;
import java.math.BigDecimal;

public class UmbrellaRuleRent implements Serializable {
    /**
     * 编号
     *
     * @mbg.generated
     */
    private Integer id;

    /**
     * 规则名称
     *
     * @mbg.generated
     */
    private String name;

    /**
     * 计费类型
     *
     * @mbg.generated
     */
    private Integer chargetype;

    /**
     * 计价长度
     *
     * @mbg.generated
     */
    private Integer chargelength;

    /**
     * 租金金额
     *
     * @mbg.generated
     */
    private BigDecimal price;

    /**
     * 免费时长类型
     *
     * @mbg.generated
     */
    private Integer freetimetype;

    /**
     * 免费时长
     *
     * @mbg.generated
     */
    private Integer freetimelength;

    /**
     * 所属代理
     *
     * @mbg.generated
     */
    private Integer agentId;

    /**
     * 状态
     *
     * @mbg.generated
     */
    private Integer status;

    /**
     * 规则描述
     *
     * @mbg.generated
     */
    private String description;

    /**
     * 是否逻辑删除
     *
     * @mbg.generated
     */
    private Integer flag;

    /**
     * 创建人
     *
     * @mbg.generated
     */
    private String cuser;

    /**
     * 创建时间
     *
     * @mbg.generated
     */
    private Long ctime;

    /**
     * 租金上限（0或负数表示不设置上限）
     *
     * @mbg.generated
     */
    private BigDecimal feelimit;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getChargetype() {
        return chargetype;
    }

    public void setChargetype(Integer chargetype) {
        this.chargetype = chargetype;
    }

    public Integer getChargelength() {
        return chargelength;
    }

    public void setChargelength(Integer chargelength) {
        this.chargelength = chargelength;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public Integer getFreetimetype() {
        return freetimetype;
    }

    public void setFreetimetype(Integer freetimetype) {
        this.freetimetype = freetimetype;
    }

    public Integer getFreetimelength() {
        return freetimelength;
    }

    public void setFreetimelength(Integer freetimelength) {
        this.freetimelength = freetimelength;
    }

    public Integer getAgentId() {
        return agentId;
    }

    public void setAgentId(Integer agentId) {
        this.agentId = agentId;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Integer getFlag() {
        return flag;
    }

    public void setFlag(Integer flag) {
        this.flag = flag;
    }

    public String getCuser() {
        return cuser;
    }

    public void setCuser(String cuser) {
        this.cuser = cuser;
    }

    public Long getCtime() {
        return ctime;
    }

    public void setCtime(Long ctime) {
        this.ctime = ctime;
    }

    public BigDecimal getFeelimit() {
        return feelimit;
    }

    public void setFeelimit(BigDecimal feelimit) {
        this.feelimit = feelimit;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", name=").append(name);
        sb.append(", chargetype=").append(chargetype);
        sb.append(", chargelength=").append(chargelength);
        sb.append(", price=").append(price);
        sb.append(", freetimetype=").append(freetimetype);
        sb.append(", freetimelength=").append(freetimelength);
        sb.append(", agentId=").append(agentId);
        sb.append(", status=").append(status);
        sb.append(", description=").append(description);
        sb.append(", flag=").append(flag);
        sb.append(", cuser=").append(cuser);
        sb.append(", ctime=").append(ctime);
        sb.append(", feelimit=").append(feelimit);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        UmbrellaRuleRent other = (UmbrellaRuleRent) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
            && (this.getChargetype() == null ? other.getChargetype() == null : this.getChargetype().equals(other.getChargetype()))
            && (this.getChargelength() == null ? other.getChargelength() == null : this.getChargelength().equals(other.getChargelength()))
            && (this.getPrice() == null ? other.getPrice() == null : this.getPrice().equals(other.getPrice()))
            && (this.getFreetimetype() == null ? other.getFreetimetype() == null : this.getFreetimetype().equals(other.getFreetimetype()))
            && (this.getFreetimelength() == null ? other.getFreetimelength() == null : this.getFreetimelength().equals(other.getFreetimelength()))
            && (this.getAgentId() == null ? other.getAgentId() == null : this.getAgentId().equals(other.getAgentId()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getDescription() == null ? other.getDescription() == null : this.getDescription().equals(other.getDescription()))
            && (this.getFlag() == null ? other.getFlag() == null : this.getFlag().equals(other.getFlag()))
            && (this.getCuser() == null ? other.getCuser() == null : this.getCuser().equals(other.getCuser()))
            && (this.getCtime() == null ? other.getCtime() == null : this.getCtime().equals(other.getCtime()))
            && (this.getFeelimit() == null ? other.getFeelimit() == null : this.getFeelimit().equals(other.getFeelimit()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getChargetype() == null) ? 0 : getChargetype().hashCode());
        result = prime * result + ((getChargelength() == null) ? 0 : getChargelength().hashCode());
        result = prime * result + ((getPrice() == null) ? 0 : getPrice().hashCode());
        result = prime * result + ((getFreetimetype() == null) ? 0 : getFreetimetype().hashCode());
        result = prime * result + ((getFreetimelength() == null) ? 0 : getFreetimelength().hashCode());
        result = prime * result + ((getAgentId() == null) ? 0 : getAgentId().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getDescription() == null) ? 0 : getDescription().hashCode());
        result = prime * result + ((getFlag() == null) ? 0 : getFlag().hashCode());
        result = prime * result + ((getCuser() == null) ? 0 : getCuser().hashCode());
        result = prime * result + ((getCtime() == null) ? 0 : getCtime().hashCode());
        result = prime * result + ((getFeelimit() == null) ? 0 : getFeelimit().hashCode());
        return result;
    }
}